<template>
  <div>
    <div id="log">
      <div class="choice" :style="chowid">
        <div class="charea">
          <div class="chareatop">
            <p class="iconfont icon-jianli"></p>
          </div>
          <div class="introduce">
            <div class="intarea">
              <p class="box">
                The resume of Jinjiang Cisheng was developed independently
                without any quick build plug-ins and pure handwritten code
              </p>
              <p @click="navru" class="Clijump">Click jump</p>
            </div>
          </div>
        </div>
      </div>
      <div class="choice" :style="chowid">
        <div class="charea">
          <div class="chareatop">
            <p class="iconfont icon-wenjianjia"></p>
          </div>
          <div class="introduce">
            <div class="intarea">
              <p class="box">Gitee, the project source code is open</p>
              <p @click="waib" class="Clijump">Click jump</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      chowid: "width:50%;",
    };
  },
  methods: {
    navru() {
      this.chowid = "width:0%;";
      if (this.$route.path != "/envelope") {
        setTimeout(() => {
          this.$router.push("/envelope");
        }, 1200);
      }
    },
    waib() {
      this.chowid = "width:0%;";
      setTimeout(() => {
        window.location.href = "https://gitee.com/jiang-cisheng/jiang-cisheng";
      }, 1200);
    },
  },
};
</script>

<style lang="less" scope>
#log {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: space-between;
  .choice {
    height: 100vh;
    background-image: linear-gradient(#ee9ca7, #ffdde1);
    transition: 1s;
    display: flex;
    justify-content: space-around;
    align-items: center;
    overflow: hidden;
    
    .introduce {
      width: 100%;
      height: 0rem;
      background-color: #ffffff;
      transition: 0.5s;
      overflow: hidden;
      .intarea {
        width: 100%;
        height: 100%;
        padding: 0.05rem;
        display: flex;
        justify-content: space-around;
        flex-direction: column;
        .box {
          width: 100%;
          max-height: 1rem;
          display: flex;
          justify-content: space-between;
          overflow: auto;
        }
        .Clijump {
          width: 1rem;
          border: 1px solid #000;
          border-radius: 0.05rem;
          text-align: center;
          font-weight: bold;
          padding: 0 0.1rem 0 0.1rem;
        }
      }
      p {
        font-size: 0.15rem;
      }
    }
  }
  .charea {
    width: 3rem;
    box-shadow: 0px 0px 5px #ffffff;
    .chareatop {
      width: 100%;
      height: 1.5rem;
      /* background-image: linear-gradient(#ee9ca7, #ffdde1); */
      background-color: #ffffff;
      display: flex;
      justify-content: space-around;
      align-items: center;
      transition: 0.5s;
    }
    &:hover .chareatop {
      background-image: linear-gradient(#9198e5, pink);
    }
    &:hover .iconfont {
      font-size: 1rem;
      color: #ffffff;
    }
    &:hover .introduce {
      height: 1.5rem;
    }
  }
  .iconfont {
    font-size: 1rem;
    color: #616161;
    transition: 0.5s;
  }
}
</style>